An Almost Perfect Abstraction Operator for Partial Deduction
نویسندگان
چکیده
A partial deduction strategy for logic programs usually uses an abstraction operator to guarantee the niteness of the set of goals for which partial deductions are produced. Finding an abstraction operator which guarantees niteness and still does not loose relevant information (with respect to the partial deduction) is a diicult problem. In 4] and 7] Gallagher and Bruynooghe proposed to base the abstraction operator on characteristic paths and trees. A characteristic tree captures the structure of the generated partial SLDNF-tree for a given goal, i.e. it captures the relevant information for partial deduction. The generation of more general atoms having the same characteristic tree would lead to an almost perfect abstraction operator. Unfortunately the abstraction operators proposed in 4] and 7] do not always produce more general atoms and do not always preserve the characteristic trees. In this paper we propose to solve this problem through the use of constraints in the partial deduction process. We show that satissability of these constraints is decidable and that they do not introduce a termination problem of their own. We will thus present a partial deduction strategy which has an almost perfect abstraction operator. almost perfect control of polyvariance. always terminates while ensuring the closedness and independence conditions (slightly adapted to allow constraints) of 12].
منابع مشابه
Constrained Partial Deduction and the Preservation of Characteristic Trees Constrained Partial Deduction and the Preservation of Characteristic Trees
Partial deduction strategies for logic programs often use an abstraction operator to guarantee the niteness of the set of goals for which partial deductions are produced. Finding an abstraction operator which guarantees niteness and does not lose relevant informationis a diicult problem. In earlier work Gallagher and Bruynooghe proposed to base the abstraction operator on characteristic paths a...
متن کاملConjunctive Partial Deduction in Practice
Recently, partial deduction of logic programs has been extended to conceptually embed folding. To this end, partial deductions are no longer computed of single atoms, but rather of entire conjunctions; Hence the term “conjunctive partial deduction”. Conjunctive partial deduction aims at achieving unfold/fold-like program transformations such as tupling and deforestation within fully automated p...
متن کاملImproving Control in Functional Logic Program Specialization
We have recently deened a framework for Narrowing-driven Partial Evaluation (NPE) of functional logic programs. This method is as powerful as partial deduction of logic programs and positive supercom-pilation of functional programs. Although it is possible to treat complex terms containing primitive functions (e.g. conjunctions or equations) in the NPE framework, its basic control mechanisms do...
متن کاملEcological Partial Deduction : Preserving Characteristic
A partial deduction strategy for logic programs usually uses an abstraction operation to guarantee the niteness of the set of atoms for which partial deductions are produced. Finding an abstraction operation which guarantees niteness and does not loose relevant information is a diicult problem. In earlier work Gallagher and Bruynooghe proposed to base the abstraction operation on characteristic...
متن کاملAbstraction-Based Partial Deduction for Solving Inverse Problems - A Transformational Approach to Software Verification
ion-Based Partial Deduction for Solving Inverse Problems – A Transformational Approach to Software Verification (Extended Abstract) Robert Glück and Michael Leuschel 1 DIKU, Department of Computer Science, University of Copenhagen, DK-2100 Copenhagen, Denmark Email: [email protected] 2 Department of Electronics and Computer Science University of Southampton, Southampton SO17 1BJ, UK Email: mal@ecs...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1994